Skip to main content

Interface: SignalOptions

Signal options

Allow to turn on/off additional features

Example

// Disable the warning message when emitting a signal without any observer
const notCriticalSignal = createSignal({
allowEmittingWithoutObserver: true,
});

Properties

allowEmittingWithoutObserver

Optional allowEmittingWithoutObserver: boolean

Set it to true to disable the warning when emitting signal without any observers

Default Value

false


bufferSize

Optional bufferSize: number

Specify the buffer size for replay type signal

Default Value

2


name

Optional name: string

Giving a name for the ease of debugging


variant

Optional variant: SignalVariant

Use different variant of signal

Default Value

generic